-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[Connector API] Support soft-deletes of connectors #118669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Connector API] Support soft-deletes of connectors #118669
Conversation
|
Documentation preview: |
|
Hi @jedrazb, I've created a changelog YAML for you. |
…ub.com:jedrazb/elasticsearch into support-soft-deletes-connectors-change-mapping
|
@elasticmachine merge upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
That was the single edge case I didn't cover because we have custom check (with query) for index names already in use ... fixed in 7525c99 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments, but I think nothing preventing this PR from being merged
rest-api-spec/src/main/resources/rest-api-spec/api/connector.list.json
Outdated
Show resolved
Hide resolved
...earch/src/main/java/org/elasticsearch/xpack/application/connector/ConnectorIndexService.java
Outdated
Show resolved
Hide resolved
...earch/src/main/java/org/elasticsearch/xpack/application/connector/ConnectorIndexService.java
Outdated
Show resolved
Hide resolved
...earch/src/main/java/org/elasticsearch/xpack/application/connector/ConnectorIndexService.java
Outdated
Show resolved
Hide resolved
...plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/Connector.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Tim Grein <[email protected]>
…ist.json Co-authored-by: Tim Grein <[email protected]>
|
@elasticmachine merge upstream |
…ub.com:jedrazb/elasticsearch into support-soft-deletes-connectors-change-mapping
|
New changes:
|
|
@elasticmachine merge upstream |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Just a few questions, nothing blocking.
...plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/Connector.java
Show resolved
Hide resolved
...plugin/ent-search/src/main/java/org/elasticsearch/xpack/application/connector/Connector.java
Show resolved
Hide resolved
...earch/src/main/java/org/elasticsearch/xpack/application/connector/ConnectorIndexService.java
Show resolved
Hide resolved
...h/src/main/java/org/elasticsearch/xpack/application/connector/action/GetConnectorAction.java
Show resolved
Hide resolved
.../main/java/org/elasticsearch/xpack/application/connector/action/RestListConnectorAction.java
Outdated
Show resolved
Hide resolved
|
@elasticmachine merge upstream |
|
merge conflict between base and head |
…ub.com:jedrazb/elasticsearch into support-soft-deletes-connectors-change-mapping
Soft deletes for connectors
Add support for soft-deletes of connectors. Why?
Changes
deletedflag in the connector index mappings, indicates whether connector has been soft deleteddelete,getandlistoperations logic to support this featureinclude_deleted=trueflag we return also deleted connectors in the responseRelated work
SystemIndexDecriptorfor connector indices soon, this will help updating mappings a lot as there is SystemIndexMappingUpdateServiceforce=trueto delete endpoint to completely remove the connector